<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/base.css">
    <script src="./js/common.js"></script>
    <title>电影分类</title>
    <script>
        window.onload = function () {
            // 搜索框功能
            let userInput = document.querySelector("#userInput");
            let seachBtn = document.querySelector("#seachBtn");
            userInput.onfocus = function () {
                seachBtn.style.display = "block";
            }
            userInput.onblur = function () {
                seachBtn.style.display = "none";
                userInput.value = "";
            }
        }
    </script>
</head>

<body>
    <!-- 项目容器 start-->
    <div class="app">
        <!-- 头部搜索框 start -->
        <nav class="nav-box">
            <div class="nav-input">
                <input id="userInput" type="text">
            </div>
            <div id="seachBtn" class="nav-btn">
                <span>搜索</span>
            </div>
        </nav>
        <!-- 头部搜索框 end -->
        <!-- 首页正文 start -->
        <div class="content-box">
            <!-- 首页分类列表 start -->
            <div class="films-box">
                <div class="list-name">
                    <span>热门电影</span>
                </div>
                <div class="content-list">
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <!-- <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span> -->
                            <span class="star-tip">暂无评分</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                    <!-- 电影展示组件 start -->
                    <div class="film-item">
                        <div class="film-img" style="background-image: url(./imgs/film.jpg)"></div>
                        <div class="film-title">蚁人2：黄蜂女现身</div>
                        <div class="film-source">
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img open"></span>
                            <span class="star-img close"></span>
                            <span class="star-img close"></span>
                            <span class="star-source">7.9</span>
                        </div>
                    </div>
                    <!-- 电影展示组件 end -->
                </div>
            </div>
            <!-- 首页分类列表 end -->
        </div>
        <!-- 首页正文 end -->
    </div>
    <!-- 项目容器 end-->
</body>

</html>